﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Store.Manager.ERP.Domain.Entities
{
    public class Inventory
    {
        [SugarColumn(IsPrimaryKey =true,IsIdentity =true)]
        public int Id { get; set; } // 库存记录唯一标识
        public string OrganizationCode { get; set; } // 所属组织 ID
        public string ProductCode { get; set; } // 商品 ID
        public int Quantity { get; set; } // 库存数量

        // 导航属性，用于关联组织和商品
        [SugarColumn(IsIgnore =true)]
        public virtual Organization Organization { get; set; }
        [SugarColumn(IsIgnore = true)]
        public virtual Product Product { get; set; }
    }
}
